import { post } from '@/utils/https';

// 身份证重复校验
export function identityCardSameValid(num) {
  return new Promise((resolve, reject) => {
    post(PERFORM_URL + '/agentinfo/query_onthejobtype',
      {
        certificateNum: num
      },
      res => {
        resolve(res);
      },
      err => {
				resolve(err);
        Message.error({ message: err.message, duration: 2000 });
      }
    );
  });
}

